public class ArrayOps
{
   /**
      This method sums up both rows of a two-dimensional array
      (the only parameter to the method) and returns the greater sum.
      @param theArray, a 2-D array of integers
      @return, the greater row sum
   */
   public static int bigSum(int[][] theArray)
   {
      // your work here
      int sum1=0,sum2=0;

      for(int i=0;i<3;i++)
      sum1+=theArray[0][i];
      for(int i=0;i<3;i++)
      sum2+=theArray[1][i];
      if(sum1>sum2)
      return sum1;
      else
      return sum2;

      // loop though theArray, summing first row 

      // your work here

      // loop though theArray, summing second row 

      // your work here

      // return larger sum

      // your work here

   }
}